package com.lingyuan.oms.remote;

import com.lingyuan.common.core.domain.R;
import com.lingyuan.common.core.domain.vo.call.WareCall;
import com.lingyuan.common.core.domain.vo.sms.ComputeVo;
import com.lingyuan.common.core.domain.vo.sms.CouponSkuIdsVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("lingyuan-warehouse")
public interface WarehouseRemoteService {

    /**
     * 减库存
     */
    @PostMapping("wms/wareLock")
    public R<Object> wareLock(@RequestBody List<WareCall> wareSkuList);
    /**
     * 锁定库存
     */
    @PostMapping("skuWare/lockStock")
    public R lockStock(@RequestBody List<WareCall> wareCallList);
    /**
     * 释放库存
     */
    @PostMapping("skuWare/releaseStock")
    public R releaseStock(@RequestBody List<WareCall> wareCallList);
}
